package com.csnf.dao;

import com.csnf.entity.Student;

import java.io.IOException;
import java.util.List;

public interface IStudentDao {
     //查询所有学生
     List<Student> findAll()throws IOException;
     //通过id查询学生
     Student findById(Integer id)throws IOException;
     //通过姓名查询学生
     List<Student> findByName(String name)throws IOException;
     //删除学生
     void deleteById(Integer id)throws IOException;
     //修改学生
     void update(Student student)throws IOException;
     //添加学生
     void insert(Student student)throws IOException;

}
